// 子组件
import React from 'react';
export default class App extends React.Component {
    constructor(props) {
        console.log('props', props);
        super(props);
        this.state = {
            content:'',
        }
    }
    click1=() => this.props.getmsg('666666')

    render() {
        return (
            <div>
                <h1>我是App3的子组件</h1>
                <button onClick={this.click1}>子组件button 点击子传父</button>
            </div>
        )
    }



}